//
//  TTSSelectViewController.m
//  TTSVideo
//
//  Created by chenHR on 16/2/29.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TTSSelectViewController.h"

@interface TTSSelectViewController ()

@end

@implementation TTSSelectViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor redColor];
    
    // 左侧菜单按钮
    UIImage *img = [UIImage imageNamed:@"iconfont-menu"];
    img = [img imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:img style:UIBarButtonItemStyleDone target:self action:@selector(menuBtnAction:)];
    
    // 标题
    UIImageView *titleImgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"title"]];
    titleImgView.frame = CGRectMake(142, 4, 100, 35);
    [self.navigationController.navigationBar addSubview:titleImgView];

    // 右侧眼睛按钮
    UIImage *imgEye = [UIImage imageNamed:@"iconfont-yanjing"];
    imgEye = [imgEye imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:imgEye style:UIBarButtonItemStyleDone target:self action:@selector(eyeBtnAction:)];
    
}

/**
 *  菜单按钮
 *
 *  @param btn 监听按钮
 */
- (void)menuBtnAction:(UIButton *)btn{
    NSLog(@"菜单");
}


- (void)eyeBtnAction:(UIBarButtonItem *)btn{
    NSLog(@"眼睛");
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
